import { RecoilRoot } from "recoil";
import { ConfigProvider } from "antd";
import { Routes, Route } from "react-router-dom";
import zhCNLocale from "antd/locale/zh_CN";
import Home from "./pages/Home";
import NotFound from "./pages/NotFound";

function App() {
  return (
    <RecoilRoot>
      <ConfigProvider locale={zhCNLocale}>
        <Routes>
          <Route path="/" element={<Home />}></Route>
          <Route path="*" element={<NotFound />}></Route>
        </Routes>
      </ConfigProvider>
    </RecoilRoot>
  );
}

export default App;
